/* 
 * File:   User.cpp
 * Author: Nicolas Proust & Pierre-Antoine Jahan
 * 
 * Created on 26 janvier 2013, 13:25
 */

#include "User.h"

User::User() {
    name="user";
}

void User::SetListOfTasksLists(list<ListOfTask*> listOfTasksLists) {
    this->listOfTasksLists = listOfTasksLists;
}

list<ListOfTask*> User::GetListOfTasksLists() const {
    return listOfTasksLists;
}

void User::SetListOfTasksTemplates(list<ListOfTask*> listOfTasksTemplates) {
    this->listOfTasksTemplates = listOfTasksTemplates;
}

list<ListOfTask*> User::GetListOfTasksTemplates() const {
    return listOfTasksTemplates;
}

//Gestion de la liste des taches
void User::addList(ListOfTask* t) {
    listOfTasksLists.push_back(t);
}

void User::removeList(ListOfTask* t) {
    listOfTasksLists.remove(t);
}

void User::addTemplate(ListOfTask* t) {
    listOfTasksTemplates.push_back(t);
}

void User::removeTemplate(ListOfTask* t) {
    listOfTasksTemplates.remove(t);
}

void User::SetName(string name) {
    this->name = name;
}

string User::GetName() const {
    return name;
}
